<?php
session_start();
$_SESSION['baseurl']= base_url();
$_SESSION['upanh']=$this->session->userdata('upanh');
?>
<!DOCTYPE html>
<html lang="vi">
<head>
    <meta charset="utf-8" />
    <title>He thong Quản Trị Website</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no" />
    <meta name="description" content="Hệ thống quản trị Website" />
    <meta name="author" content="Tạ Mạnh Quyền" />
    <!-- STYLESHEETS -->
    <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>skin/admin/css/cloud-admin.css" />
   	<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>skin/admin/css/themes/default.css" id="skin-switcher" />
    <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>skin/admin/css/responsive.css" />
    <link href="<?php echo base_url(); ?>skin/admin/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
    <!-- DATE RANGE PICKER -->
    <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>skin/admin/js/bootstrap-daterangepicker/daterangepicker-bs3.css" />
    <!-- UNIFORM -->
    <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>skin/admin/js/uniform/css/uniform.default.min.css" />
    <!-- ANIMATE -->
    <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>skin/admin/css/animatecss/animate.min.css" />
    <!-- FONTS -->
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700&subset=latin,vietnamese' rel='stylesheet' type='text/css'>
    <!-- DATA TABLES -->
	<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>skin/admin/js/datatables/media/css/jquery.dataTables.min.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>skin/admin/js/datatables/media/assets/css/datatables.min.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>skin/admin/js/datatables/extras/TableTools/media/css/TableTools.min.css" />
    <!-- CUSTOM CSS -->
    <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>skin/admin/css/custom.css" />
    <!-- END -->
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
    <script type="text/javascript" src="<?php echo base_url();?>ckeditor/ckeditor.js"></script>
    <script type="text/javascript" src="<?php echo base_url();?>ckeditor/ckfinder/ckfinder.js"></script>
</head>
<?php include('header.php'); ?>
    <section id="page">
                <?php
                    if($this->session->userdata('logedin')){
                    if($this->session->userdata('id')!='')
                                {
                                    include('menu.php');
                                }
                        }
                        /* in ra page */
                    if(!empty($page)){
                        echo $page;
                           /* end in page
                        */
                    }
                    else
                        {
                            include('404page.php');
                        }
                ;?>
    </section>
    <!--/PAGE -->
<?php include('script.php'); ?>
</html>